package com.tsin.usercenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tsin.usercenter.model.Team;
import com.tsin.usercenter.model.User;
import com.tsin.usercenter.model.dto.TeamQuery;
import com.tsin.usercenter.model.dto.TeamUpdateQuery;
import com.tsin.usercenter.model.request.JoinTeamRequest;
import com.tsin.usercenter.model.request.QuitTeamRequest;
import com.tsin.usercenter.model.request.TeamRequest;
import com.tsin.usercenter.model.vo.TeamVO;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
 * @author tsin0
 * @description 针对表【team】的数据库操作Service
 * @createDate 2024-01-13 14:27:24
 */
public interface TeamService extends IService<Team> {
    long addTeam(TeamRequest teamRequest, User loginUser);

    List<TeamVO> listTeams(TeamQuery teamQuery);
    Boolean updateTeam(TeamUpdateQuery teamUpdateQuery,User loginUser);

    Boolean deleteTeam(int id,User loginUser);
    Boolean joinTeams(JoinTeamRequest joinTeamRequest, User loginUser);

    Boolean quitTeams(QuitTeamRequest quitTeamRequest, User loginUser);
    List<Team> getMyTeam(User loginUser);
}
